import com.cetc.cloud.kmga.util.HttpUtil;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Administrator on 2017/11/21 0021.
 */
public class testHttpClient {

    public static void main(String[] args) {

        //HttpUtil httpUtil = new HttpUtil("https://192.168.112.205/add_device?timestamp=1511102366&user=all&token=8YVo86xlA8W3rScyzdq7YI/NuZ/D2fWy9dQ0y3G/wqk=");

        HttpUtil httpUtil = new HttpUtil("https://192.168.112.205/add_device");

        Map<String,String> messages = new HashMap<String,String>();
        messages.put("user","all");
        messages.put("token","8YVo86xlA8W3rScyzdq7YI/NuZ/D2fWy9dQ0y3G/wqk=");
        httpUtil.sendPostRequest(messages,httpUtil.APPLICATION_FORM_URLENCODED);
        System.out.println(httpUtil.getResponseString());

    }



}
